/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package co.com.smart.hawk.main;

import co.com.smart.hawk.view.impl.HawkLoginViewImpl;
import javax.swing.JOptionPane;


/**
 *
 * @author Andres Escobar
 */
public class SmartHawk {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {
        try {

            /*
             * Create and display the form
             */
            java.awt.EventQueue.invokeLater(new Runnable() {

                @Override
                public void run() {
                    /* Set the Nimbus look and feel */
                    HawkLoginViewImpl view = new HawkLoginViewImpl();
                    view.setVisible(true);
                    view.pack();

                }
            });

        } catch (Throwable thr) {
            thr.printStackTrace(System.err);
            JOptionPane.showMessageDialog(null, "No se pudo establecer conexión con la base de datos", "Fallo de conexión. \n" + thr.getMessage(), JOptionPane.ERROR_MESSAGE);
        }
    }
}
